home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8625 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: user1.mnsinc.com!huang
  2. From: huang@mnsinc.com (Szu-Wen Huang)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C/C++ cross-platform compatibility
  5. Date: 5 Mar 1996 14:06:51 GMT
  6. Organization: Monumental Network Systems
  7. Message-ID: <4hhhpr$8rp@news1.mnsinc.com>
  8. References: <4hfvlk$dn1@bay>
  9. NNTP-Posting-Host: user.mnsinc.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. charrick@netrover.com wrote:
  13. : I'm working on an application I want to compile on many
  14. : different platforms.  Somewhere along the line, I need to
  15. : obtain a list of all files in a directory.  In OS/2, DOS,
  16. : WinNT, etc... the way to do this is with DosFindFirst and
  17. : DosFindNext.  However, these are not part of the ANSI
  18. : standard, so I want to know, what should I use?  Are these
  19. : actually supported on everything, or is there another way
  20. : to do this?
  21.  
  22. Looking at all these questions is giving me an idea.  There are
  23. plenty of books discussing standard C, but there seems to lack a
  24. good book that discusses non-standard C.  It might be nice to
  25. have a book that does *not* discuss standard C (to save dozens
  26. of chapters), instead concentrates on porting platform specific
  27. code to other platforms.  Oftentimes I find myself looking at a
  28. platform specific library function and end up just staring at it,
  29. trying to imagine how I would get it to compile under another
  30. platform.  Thoughts?
  31.